package com.kyd.push.model;


import com.kyd.push.common.enums.EnumKit;
import com.kyd.push.common.enums.ValueEnum;

/**
 * PushTypeEnum
 *
 * @author MarsBuilder on 2018/8/16 14:55
 */
public enum TopicEnum implements ValueEnum<String> {

    ORDER("kyd_order", "新运单"),
    TAKE("kyd_order_take", "接单"),
    LOADED("kyd_order_loaded", "确认装车"),
    TOPAY("kyd_order_topay", "去支付"),
    ARRIVED("kyd_order_arrived", "确认到达"),
    PAID("kyd_order_paid", "成功支付"),
    CONSIGNOR_CANCEL("kyd_order_cancel_consignor", "货主取消运单"),
    DRIVER_CANCEL("kyd_order_cancel_driver", "司机取消运单"),
    EVALUATE("kyd_order_evaluate", "运单评价"),
    COMPLAIN("kyd_order_complain", "运单投诉"),
    CONSIGNOR_REFERRAL("kyd_consignor_referral", "邀请活动货主方"),
    DRIVER_REFERRAL("kyd_driver_referral", "邀请活动司机方"),
    PREPARE("kyd_ad_prepare", "预注册活动"),
    ;

    private final String value;
    private final String name;

    TopicEnum(String value, String name) {
        this.value = value;
        this.name = name;
    }

    /////////////////////////////////////////////
    public String value() {
        return this.value;
    }

    public String getName() {
        return this.name;
    }

    public static TopicEnum forValue(String value) {
        return EnumKit.forValue(value, TopicEnum.class);
    }
}
